package hlhj.fhp.newslib.utils

import android.content.Context
import android.graphics.drawable.Drawable
import android.widget.ImageView
import com.bumptech.glide.Glide
import com.bumptech.glide.Priority
import com.bumptech.glide.load.engine.DiskCacheStrategy
import com.bumptech.glide.request.RequestOptions
import com.bumptech.glide.request.target.SimpleTarget
import com.bumptech.glide.request.transition.Transition
import hlhj.fhp.newslib.R

/**
 * Created by Administrator on 2018\6\25 0025.
 */
object GlideUtil {

    fun loadIMGOption(): RequestOptions {
        return RequestOptions()

                .diskCacheStrategy(DiskCacheStrategy.ALL)
                .priority(Priority.IMMEDIATE)
    }
    fun loadHead(): RequestOptions {
        return RequestOptions()
                .placeholder(R.drawable.ic_touxiang_ph)
                .diskCacheStrategy(DiskCacheStrategy.ALL)
                .priority(Priority.IMMEDIATE)
    }
}